import data.DataFactory;
import data.cache.table.CacheDataTable;
import data.sql.SqlConnectionConfig;


public class TestCacheDataTable {

	public static void main(String[] args)
	{
		SqlConnectionConfig dataConnectionConfig=new SqlConnectionConfig("./DBConfig.properties");
		DataFactory.sqlController().createPool(dataConnectionConfig);
		
		CacheDataTable cacheDataTable = new CacheDataTable("user", new String[]{"ID"}, dataConnectionConfig.getSqlConnectionConfigBean().getPoolName(), "user");
		cacheDataTable.fill();
		cacheDataTable.updateToDataByChange();
		
		CacheDataTable cacheDataTable2 = new CacheDataTable("user_role", new String[]{"UserID", "ID"}, dataConnectionConfig.getSqlConnectionConfigBean().getPoolName(), "user_role");
		cacheDataTable2.fill();
//		cacheDataTable2.updateToDataByChange();
		
//		Object o = cacheDataTable2.getRow(new String[]{"1000010000000000001"});
	}
}
